import DemoRoute from "./modules/demo"

// 根路由
export const RootRoute = {
    path: "/",
    name: "Root",
    redirect: "/login",
    meta: {
        title: "",
    },
}

// 登录路由
export const LoginRoute = {
    path: "/login",
    name: "Login",
    component: () => import("@/views/system/login.vue"),
    meta: {
        title: "登录",
    }
}

// 404路由
export const ErrorRoute = [
    {
        path: "/404",
        name: "404",
        component: () => import("@/views/system/errorPage/404.vue"),
        meta: {
            title: "404",
        }
    }
]

export const basicRoutes = [
    RootRoute,
    LoginRoute,
    ...ErrorRoute,
    DemoRoute,
]
